package com.yjc.eo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.context.annotation.Bean;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

/**
 * </p>
 *
 * @author jcyin
 * @since 2025/9/8
 * </p>
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Document(indexName = "stu")
public class Stu {
    @Id
    private Long id;

    @Field
    private String name;

    @Field
    private Integer age;

    @Field
    private float money;

    @Field
    private String description;
}
